/*
 * @Author: zxh
 * @Date: 2024-07-30 17:23:05
 * @LastEditors: zxh
 * @LastEditTime: 2024-07-31 08:59:16
 * @Description: 请填写简介
 */
import http from '@/utils/http'
export const insertCartAPI = ({ skuId, count }: any) => {
  return http({
    url: '/member/cart',
    method: 'POST',
    data: {
      skuId,
      count
    }
  })
}
export const findNewCartListAPI = () => {
  return <any>http({
    url: '/member/cart'
  })
}

export const delCartAPI = (ids: any) => {
  return http({
    url: '/member/cart',
    method: 'DELETE',
    data: {
      ids
    }
  })
}

// 合并购物车
export const mergeCartAPI = (data: any) => {
  return http({
    url: '/member/cart/merge',
    method: 'POST',
    data
  })
}
